package com.zhi.service.impl;

import com.zhi.dao.LDCodeRepository;
import com.zhi.entity.LDCode;
import com.zhi.service.LDCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class LDCodeServiceImpl implements LDCodeService {
    @Autowired
    LDCodeRepository ldCodeRepository;
    @Override
    public List<LDCode> findByCodeType(String CodeType) {
        return ldCodeRepository.findByCodeType(CodeType);
    }

    @Override
    public LDCode findByPK(String CodeType, String Code) {
        return ldCodeRepository.findByPK(CodeType,Code);
    }
}
